//
//  SimpleLoginViewController.m
//  RSW.IOS
//
//  Created by zhaiqiuqiu on 16/10/25.
//  Copyright © 2016年 com.xtion.crm. All rights reserved.
//

#import "SimpleLoginViewController.h"
#import "ShelterView.h"

#define CELL_H 44
#define CELL_IMAGE_SIZE 22
#define CELL_TEXT_SIZE 16
#define SUBITEM_H 36
#define ABOUT_BUTTON_H 30

@interface SimpleLoginViewController ()
{
    UITextField *_userNameField;
    UIView *_inputPanelView;
}
@end

@implementation SimpleLoginViewController

- (void)viewDidLoad {
    //[super viewDidLoad];
    [[XUINavigationController navigationController] setNavigationBarHidden:YES animated:YES];
    
    //登陆界面背景
    self.view.backgroundColor = [UIColor colorWithHex:mcrmSAASUISkinColorTextStylef1f4f7Color];
    
    float statusBarH = [UIApplication sharedApplication].statusBarFrame.size.height;
    UIImageView *bgImageView = [[UIImageView alloc] initWithFrame:CGRectMake(113*kWidthScale, 67*kHeightScale, [UIDevice screenWidth] -  113*kWidthScale*2, 97*kHeightScale)];
    bgImageView.contentMode = UIViewContentModeScaleAspectFit;
    if (![UIDevice isIOS7OrNewer])
        bgImageView.top -= statusBarH;
    
    bgImageView.image = [UIImage imageNamed:@"img_logo"];
    
    [self.view addSubview:bgImageView];
    
    _inputPanelView = [[UIView alloc]initWithFrame:self.view.bounds];
    //_inputPanelView.alpha = 0;
    [self.view addSubview:_inputPanelView];
    
    _userNameField = [[UITextField alloc]initWithFrame:CGRectMake(60, 60, 10, 20)];
    [_inputPanelView addSubview:_userNameField];
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
